function setRDLoss(main)

    [dinamicLossDown, dinamicLossUp, stageLow, stageUp] = dinamicLoss(main, main.filterType, main.wa, main.wp, main.waMAS, main.waMENOS, main.wpMAS, main.wpMENOS);
            
    set(main.handles.txt_UpLoss, 'String', num2str(dinamicLossUp));
    set(main.handles.txt_downLoss, 'String', num2str(dinamicLossDown));
    set(main.handles.txt_totLoss, 'String', num2str(dinamicLossUp+dinamicLossDown));
end